package com.corffen.design.builder;

public class AlertController {

   private String mMessage;
   private String mTitle;

    public String getMessage() {
        return mMessage;
    }

    public void setMessage(String message) {
        mMessage = message;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }

    public static class Params{
        public String message;
        public String title;

        public void apply(AlertController controller){
            if (message != null) {
                controller.setMessage(message);
            }

            if (title != null) {
                controller.setTitle(title);
            }
        }
    }
}
